﻿@model DepartmentModel

@Html.ValidationSummary(true)
@Html.HiddenFor(model => model.Id)

<div class="content">
    <div class="form-horizontal">
        <div class="panel-group">
            <div class="panel panel-default">
                <div class="panel-body">
                    <div class="form-group">
                        <div class="col-md-3">
                            父节点
                        </div>
                        <div class="col-md-9">
                            @Html.NopDropDownListFor(model => model.PId, Model.AvailableDepartments)
                            @Html.ValidationMessageFor(model => model.PId)
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-3">
                            名称
                        </div>
                        <div class="col-md-9">
                            @Html.NopEditorFor(model => model.Name, required: true)
                            @Html.ValidationMessageFor(model => model.Name)
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-3">
                            编码
                        </div>
                        <div class="col-md-9">
                            @Html.NopEditorFor(model => model.Abbr, required: true)
                            @Html.ValidationMessageFor(model => model.Abbr)
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-3">
                            维修
                        </div>
                        <div class="col-md-9">
                            @Html.NopEditorFor(model => model.IsMaintenance)
                            @Html.ValidationMessageFor(model => model.IsMaintenance)
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-3">
                            启用
                        </div>
                        <div class="col-md-9">
                            @Html.NopEditorFor(model => model.Active)
                            @Html.ValidationMessageFor(model => model.Active)
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
